package com.bd.scm.module.utils.qywx;

import com.alibaba.fastjson.JSONObject;
import com.bd.utils.PropertiesUtil;
import org.jboss.logging.Logger;

import java.util.Properties;

/**
 * 读取微信配置文件  wxconfig.properties工具类
 * @author YH
 *
 */
public class WeiXinParamesUtil {

    /**
     * 日志
     */
    public static Logger logger = Logger.getLogger(WeiXinParamesUtil.class);


    /**
     *
     */
    private static final String RESOURCENAME = "wxconfig.properties";

    private static Properties properties = PropertiesUtil.loadProperties(RESOURCENAME);

    public static Properties getProperties(){
        return properties;
    }

    public static String getProperty(String key){
        return WeiXinParamesUtil.getProperties().getProperty(key);
    }
}
